{% extends "main.html" %}

{% block content %}
{% if user.is_staff %}
<div class="content-box">
  <div class="content-box-header">
    <h3>Condminium</h3>
      <ul class="content-box-tabs">
        <li><a href="/condominos" >List</a></li> <!-- href must be unique and match the id of target div -->
	{% if user.is_staff %}
        <li><a href="#tab1" class="default-tab">Add Condominium</a></li>
        {% endif %}
      </ul>
      <div class="clear"></div>
    </div>

    <div class="content-box-content">
      <div class="tab-content default-tab" id="tab1">
        <form action="" method="post" accept-charset="utf-8">
          <table>
            {% csrf_token %}
            {{ form.as_table }}
            <br/>
          <tr>
            <td><input type="submit" value="Save"></td>
            <td><INPUT TYPE="button" VALUE="Cancel" onClick="history.go(-1);return true;"> </td>
          </tr>
        </table>
      </form>
    </div>
  </div>
</div>
{% else %}
You don't have permissions to access this page
{% endif %}
{% endblock %}
